package com.example.orderflow.service;

import java.util.List;

import com.example.orderflow.entity.query.OrderEquipmentQuery;
import com.example.orderflow.entity.po.OrderEquipment;
import com.example.orderflow.entity.vo.PaginationResultVO;


/**
 *  业务接口
 */
public interface OrderEquipmentService {

	/**
	 * 根据条件查询列表
	 */
	List<OrderEquipment> findListByParam(OrderEquipmentQuery param);

	/**
	 * 根据条件查询列表
	 */
	Integer findCountByParam(OrderEquipmentQuery param);

	/**
	 * 分页查询
	 */
	PaginationResultVO<OrderEquipment> findListByPage(OrderEquipmentQuery param);

	/**
	 * 新增
	 */
	Integer add(OrderEquipment bean);

	/**
	 * 批量新增
	 */
	Integer addBatch(List<OrderEquipment> listBean);

	/**
	 * 批量新增/修改
	 */
	Integer addOrUpdateBatch(List<OrderEquipment> listBean);

	/**
	 * 多条件更新
	 */
	Integer updateByParam(OrderEquipment bean,OrderEquipmentQuery param);

	/**
	 * 多条件删除
	 */
	Integer deleteByParam(OrderEquipmentQuery param);

	/**
	 * 根据Id查询对象
	 */
	OrderEquipment getOrderEquipmentById(Integer id);


	/**
	 * 根据Id修改
	 */
	Integer updateOrderEquipmentById(OrderEquipment bean,Integer id);


	/**
	 * 根据Id删除
	 */
	Integer deleteOrderEquipmentById(Integer id);

	/**
	 * 根据orderId查询对象
	 */
	List<OrderEquipment> selectByOrderId(String orderId);

	/**
	 * 添加订单设备
	 */
	void addOrderEquipment(String orderId,String equipmentTypeSpectrum,Object otherParameters,
								 String quantity,String notes);

}